# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-temporal_tables
_projname=temporal_tables
pkgver=1.2.0_p20210220
_gitrev=3ce22da51f2549e8f8b8fbf2850c63eb3a2f1fbb
pkgrel=2
pkgdesc="Temporal Tables PostgreSQL Extension"
url="https://github.com/arkhipov/temporal_tables"
arch="all"
license="BSD-2-Clause"
makedepends="postgresql-dev"
source="https://github.com/arkhipov/temporal_tables/archive/$_gitrev/$pkgname-$_gitrevr.tar.gz"
builddir="$srcdir/$_projname-$_gitrev"
options="!check"

build() {
	make
}

package() {
	depends="postgresql$(pg_config --major-version)"

	make install DESTDIR="$pkgdir"

	# Contains just README.md.
	rm -Rf "$pkgdir"/usr/share/doc
}

sha512sums="94c35f4020d2ea3bcca5debb026d1a4121b468d4171563e228b5aa321c75402a93f5626825d5d6ac0fa1e11bacad9cc9cf86788d95444b38c9d35a946c5a8f6f  postgresql-temporal_tables-.tar.gz"
